package cn.edu.sgu.www.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 菜单
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class Menu implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "菜单ID")
    private String id;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String name;

    /**
     * 菜单类型
     * 0-父菜单；1-子菜单
     */
    @ApiModelProperty(value = "菜单类型")
    private Integer type;

    /**
     * 页面地址
     */
    @ApiModelProperty(value = "页面地址")
    private String url;

    /**
     * 图标样式
     */
    @ApiModelProperty(value = "图标样式")
    private String iconClass;

    /**
     * 父菜单ID
     */
    @ApiModelProperty(value = "父菜单ID")
    private String parentId;

    /**
     * 应用ID
     */
    @ApiModelProperty(value = "应用ID")
    private Integer serviceId;

    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号")
    private Integer pxh;

    /**
     * 是否显示
     * 0-隐藏；1-显示
     */
    @ApiModelProperty(value = "是否显示")
    private boolean display;
}